<admintpl file="header" />
</head>
<body>
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li class="active"><a href="{:U('SupervisionMeeting/index')}">监理会议纪要管理</a></li>
            <if condition="($level eq '0' OR $level eq '3')">
            	<li><a href="{:U('SupervisionMeeting/add')}">新增监理会议纪要</a></li>
            </if>
            <if condition="($level eq '0' OR $level eq '3')">
                <li><a href="{:U('SupervisionMeeting/adds')}">新增过往会议纪要</a></li>
            </if>           
        </ul>

        <form class="well form-search  form-inline" method="post" action="{:U('SupervisionMeeting/index')}">
            <div class="form-group">
                <label class="sr-only">上周相关问题落实和解决情况</label>

                <input type="text" name="this_week_problem" class="form-control" value="{:I('request.this_week_problem/s','')}" placeholder="输入上周相关问题搜索...">


            </div>
            <button class="btn btn-primary" type="submit">搜索</button>
            <a class="btn btn-danger" href="{:U('SupervisionMeeting/index')}">清空</a>
        </form>
        <table class="table table-bordered table-condensed table-striped table-responsive">
            <thead>
                <tr>
                    <th>会议期数</th>
                    <th>创建时间</th>
                    <th>会议地点</th>
                    <th width="500">上周相关问题落实和解决情况</th>
                    <th width="80">是否发布</th>
                    <th width="120">{:L('ACTIONS')}</th>
                </tr>
            </thead>
            <tbody>
            <foreach name="results" item="vo">
                <tr>
                    <td>第<b>{$vo.issue}</b>期</td>
                    <td>{$vo.publish_time}</td>
                    <td>{$vo.meeting_place}</td>
                    <td>
                        <span title="{$vo.this_week_problem}">{$vo.this_week_problem|mb_substr=0,30,'utf-8'}</span>
                    </td>
                    <td class="text-center">
                <if condition="$vo['is_publish'] eq 1">
                    <i class="glyphicon glyphicon-ok text-success"></i>
                    <else />
                    <i class="glyphicon glyphicon glyphicon-remove text-danger"></i>
                </if>
                </td>
                <td>
                    <if condition="$vo['this_week_summary'] eq '' and $vo['prograss_goal'] eq '' and $vo['next_week_plan'] eq '' and $vo['safe_and_civilized_construction'] eq '' and $vo['construction_agent_unit'] eq '' and $vo['this_week_problem'] neq ''">
                        <a href='{:U("SupervisionMeeting/views",array("id"=>$vo["id"]))}'>查看</a>
                    <else />
                        <a href='{:U("SupervisionMeeting/view",array("id"=>$vo["id"]))}'>查看</a>
                    </if>
	                <if condition="$vo['is_publish'] eq 0 and ($level eq '0' OR $level eq '3')">
	                    |
                        <if condition="$vo['this_week_summary'] eq '' and $vo['this_week_problem'] neq ''">
                            <a href='{:U("SupervisionMeeting/edits",array("id"=>$vo["id"]))}'>修改</a>
                        <else />
                            <a href='{:U("SupervisionMeeting/edit",array("id"=>$vo["id"]))}'>修改</a>
                        </if>
	                    |
	                    <a class="js-ajax-delete" href="{:U('SupervisionMeeting/delete',array('id'=>$vo['id']))}">删除</a>
	                </if>
                    <if condition="$vo['is_publish'] eq 1 and $level eq '0'">
                        |
                        <a class="js-ajax-delete" href="{:U('SupervisionMeeting/delete',array('id'=>$vo['id']))}">删除</a>
                    </if>
                </td>
                </tr>
            </foreach>
            </tbody>
        </table>

        <div class="pagination">{$page}</div>
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
</body>
</html>